{extend name="panel/layout" /}
{block name="main"}

<div class="row">
    {if condition="$userInfo.fzpe"}
    <div class="col-xs-12">
        <div class="alert alert-success"><i class="fa fa-volume-up"></i>
            你完成充值满{:config('zz_price_sfz')}元送分站活动，你现在可以免费开通一个分站！<a
                    href="{:url('ktfz')}" class="btn-xs btn-info">马上开通</a></div>
    </div>
    {/if}
    {if condition="config('web_gg_panel')"}
    <div class="col-md-12 col-sm-6">
        <div class="panel">
            <div class="panel-body">
                {:getHtmlCode(config('web_gg_panel'))}
            </div>
        </div>
    </div>
    {/if}
    <div class="col-lg-6">
        <div class="row state-overview">
            <div class="col-md-6">
                <section class="panel">
                    <div class="symbol terques">
                        <i class="fa fa-user"></i>
                    </div>
                    <div class="value">
                        <h1>{$amount.user}</h1>
                        <p>总用户数</p>
                    </div>
                </section>
            </div>
            <div class="col-md-6">
                <section class="panel">
                    <div class="symbol red">
                        <i class="fa fa-qq"></i>
                    </div>
                    <div class="value">
                        <h1>{$amount.qq}</h1>
                        <p>总Q Q数</p>
                    </div>
                </section>
            </div>
            <div class="col-md-6">
                <section class="panel">
                    <div class="symbol yellow">
                        <i class="fa fa-first-order"></i>
                    </div>
                    <div class="value">
                        <h1>{$amount.order}</h1>
                        <p>总订单数</p>
                    </div>
                </section>
            </div>
            <div class="col-md-6">
                <section class="panel">
                    <div class="symbol blue">
                        <i class="fa fa-cloud"></i>
                    </div>
                    <div class="value">
                        <h1>{$amount.web}</h1>
                        <p>总分站数</p>
                    </div>
                </section>
            </div>
        </div>
    </div>

    <div class="col-lg-6">
        <section class="panel">
            <div class="twt-feed blue-bg">
                <h1>{$userInfo.user}[UID:{$userInfo.uid}]</h1>
                <p>身份：{if condition="$userInfo.power eq 9"}站长{elseif condition="$userInfo.power eq 0"}VIP{$userInfo.power}{else/}普通会员{/if} <button onclick="window.location.href='{:url('shop')}';" class="btn-xs btn-danger">升级VIP</button>
                </p>
                <a href="#">
                    <img src="http://q1.qlogo.cn/g?b=qq&nk={$userInfo.qq}&s=160" alt="">
                </a>
            </div>
            <div class="weather-category twt-category">
                <ul>
                    <li class="active">
                        <h5>{$userInfo.point}个</h5>
                        金币
                    </li>
                    <li>
                        <h5>{$userInfo.rmb}元</h5>
                        余额
                    </li>
                    <li>
                        <h5>{$userInfo.peie}个</h5>
                        配额
                    </li>
                </ul>
            </div>
        </section>
    </div>
</div>

{/block}
